<?php

/**
 * Usuario form.
 *
 * @package    auip
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */

class Usuario2bForm extends BaseUsuario2Form
{
  public function configure()
  {
      $this->validatorSchema->setPostValidator(
            new sfValidatorSchemaCompare('password2', sfValidatorSchemaCompare::EQUAL, 'password', array('throw_global_error' => true), array('invalid' => "Las dos contraseñas no coinciden"))
        );

      $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
  }
  
  public function getNameTo()
  {
      return 'Usuario2bForm';
  }
}
